package com.practice.demo.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("/response")
public class ServletResponse {
    @RequestMapping("/index")
    public String index(){
        return "/index.html";
    }
    @RequestMapping("/index1")
    //这种就会报错,这个应该存在response文件夹下
    //所以在默认情况下,都会选择加上 /
    public String index1(){
        return "index.html";
    }
    

}
